package com.zhj.config.thread;

import java.util.concurrent.Callable;

/**
 * Copyright: Copyright (c) 2020 hantu
 *
 * @ClassName: MyFutureTask
 * @Description:
 * @version: v1.0.0
 * @author: zhanghaojie
 * @date: 2020/6/4
 */
public class MyFutureTask implements Callable<String> {

    @Override
    public String call() throws Exception {
        String myName="yuanqi";
        System.out.println(myName);
        Thread.sleep(5000);
        myName="yuanluo";
        System.out.println("修改名字成功："+myName);
        return myName;
    }
}
